package com.ganzi.manager.model;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.ganzi.manager.activiti.model.FormInformation;
import com.ganzi.manager.base.BaseModel;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@TableName("sys_roles")
public class Role extends BaseModel<FormInformation> {

    @TableId(value = "id", type = IdType.AUTO)
    private long id;
    private String roleName;
    private String description;
    private Long pid;
    private int available;
    private List<Permissions> allPermissions;
    protected Serializable pkVal() {
        return this.id;
    }
}
